
export class DataHelper {

    static IsVec3Same(v1: IVec3, v2: IVec3): boolean {
        return v1.x == v2.x && v1.y == v2.y && v1.z == v2.z;
    }

    static NumToStr(num: number): string {
        const scale = 100000;
        return Math.round(num * scale) / scale + "";
    }

}

export interface IVec3 {
    x: number;
    y: number;
    z: number;
}